package com.info.zhiduoduo.repository.dto.project;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.info.zhiduoduo.common.excelconverter.IntFlagConverter;
import com.info.zhiduoduo.common.excelconverter.InvoiceTypeConverter;
import com.info.zhiduoduo.common.excelconverter.PayTypeConverter;
import com.info.zhiduoduo.common.excelconverter.ProjectStateConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString
public class ExportProjectListDto {

	@ExcelProperty("创建日期")
	private Date createtime;

	@ExcelProperty("项目名称")
	private String projectname;

	@ExcelIgnore
	private int userid;

	@ExcelProperty("创客工作室")
	private String username;

	@ExcelProperty("姓名")
	private String name;


	@ExcelProperty("金额（元）")
	private BigDecimal projectamount;

//	@ExcelProperty("周期剩余/总共天数（天）")
	@ExcelProperty("项目周期")
	private String days;

	@ExcelIgnore
	private int projectcycle;

	@ExcelProperty(value = "项目状态", converter = ProjectStateConverter.class)
	private int state;

	@ExcelProperty("项目分类")
	private String categoryname;

	@ExcelProperty(value = "自动验收", converter = IntFlagConverter.class)
	private int autoCheck;

	/**
	 * 项目开始时间
	 */
	@ExcelIgnore
	private Date projectstart;

}
